import request from "@/api/request"

export const InsertEvaluation=(data)=>{
    return request({
        url:'/evaluation',
        method:'POST',
        data
    })
}
export const getEvaluationById=(data)=>{
    return request({
        url:`/evaluation/${data.pageNum}/${data.pageSize}/${data.id}`
    })
}
export const getAllEvaluation=(data)=>{
    return request({
        url:`/evaluation/${data.pageNum}/${data.pageSize}`
    })
}
export const UpdateEvaluation=(data)=>{
    return request({
        url:'/evaluation',
        method:'PUT',
        data
    })
}
export const deleteEvaluationBy=(data)=>{
    return request({
        url:`/evaluation/${data.userId}/${data.evaluationId}`,
        method:'DELETE',
    })
}